package com.bruce.pattern.structural.decorator.v2;

/**
 * Created by bruce on 2018/11/3 23:19
 */
public class EggDecorator extends AbsDecorator {
    public EggDecorator(AbsBattercake absBattercake) {
        super(absBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + " 加鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
